Tables [dbo].[SalesHistoryMemorialTribute]
Properties
PropertyValue
Created10:31:37 AM Tuesday, March 02, 2010
Last Modified11:40:07 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_SalesHistoryMemorialTribute: SalesHistoryMemorialTributeKeySalesHistoryMemorialTributeKeyuniqueidentifier16
No
Foreign Keys FK_SalesHistoryMemorialTribute_SalesHistory: [dbo].[SalesHistory].SalesHistoryKeySalesHistoryKeyuniqueidentifier16
No
Foreign Keys FK_SalesHistoryMemorialTribute_ContactMain: [dbo].[ContactMain].ContactKeyContactKeyuniqueidentifier16
Yes
Descriptionnvarchar(200)400
Yes
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_SalesHistoryMemorialTribute: SalesHistoryMemorialTributeKeyPK_SalesHistoryMemorialTributeSalesHistoryMemorialTributeKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SalesHistoryMemorialTribute_ContactMainContactKey->[dbo].[ContactMain].[ContactKey]
FK_SalesHistoryMemorialTribute_SalesHistorySalesHistoryKey->[dbo].[SalesHistory].[SalesHistoryKey]
SQL Script
CREATE TABLE [dbo].[SalesHistoryMemorialTribute]
(
[SalesHistoryMemorialTributeKey] [uniqueidentifier] NOT NULL,
[SalesHistoryKey] [uniqueidentifier] NOT NULL,
[ContactKey] [uniqueidentifier] NULL,
[Description] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[SalesHistoryMemorialTribute] ADD CONSTRAINT [PK_SalesHistoryMemorialTribute] PRIMARY KEY CLUSTERED ([SalesHistoryMemorialTributeKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesHistoryMemorialTribute] ADD CONSTRAINT [FK_SalesHistoryMemorialTribute_ContactMain] FOREIGN KEY ([ContactKey]) REFERENCES [dbo].[ContactMain] ([ContactKey])
GO
ALTER TABLE [dbo].[SalesHistoryMemorialTribute] ADD CONSTRAINT [FK_SalesHistoryMemorialTribute_SalesHistory] FOREIGN KEY ([SalesHistoryKey]) REFERENCES [dbo].[SalesHistory] ([SalesHistoryKey])
GO
Uses